<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport" id="viewport"/>
<tite>双频路由器千兆无线家用穿墙高速wifi-智能模板三</tite>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
<meta name = "format-detection" content="telephone = no" />
<!--基本样式-->
<link href="/jrfr/css/mobile/mobile_base.min.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/res/jrfcms_mobi/css/mobiborder.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/res/jrfcms_mobi/css/mobishop.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/res/jrfcms_mobi/css/mobiphotostyle.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/jrfr/effectParty/css/animate.min.css?v=20200624" rel="stylesheet" type="text/css"/>
<!--魔方导航-->
<link href="/res/jrfcms_mobi/css/cubeNavigation.min.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/res/jrfcms_mobi/css/base.min.css?v=20200624" rel="stylesheet" type="text/css"/>
<!-- 模板号样式 496a00001 -->
<!-- 主题 -->
<link id="themeCss" href="/res/mobi_theme/default/right_to_left.css?v=20200624" rel="stylesheet" type="text/css"/>
<!-- 导航图标 -->
<link href="/res/jrfcms/css/popwin_module.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/res/jrfcms_mobi/css/commonmodule.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/res/jrfcms_mobi/css/mobicontent.css?v=20200624" rel="stylesheet" type="text/css"/>
<link href="/res/jrfcms_mobi/css/manage.min.css?v=20200624" rel="stylesheet" type="text/css"/>
<!-- 产品内容 -->
<link href="/res/jrfcms_mobi/css/mobiProduct.min.css?v=20200624" rel="stylesheet" type="text/css" />
<!-- new -->
<link href="/res/jrfcms_mobi/css/internal_tool_base.css?v=20200624" rel="stylesheet" type="text/css"/>

<script src="/res/common/js/jquery-core.min.js?v=20200624" type="text/javascript"></script>
<script src="/thirdparty/layer_2.4/layer.js?v=20200624" type="text/javascript"></script>
<!-- 横幅插件 -->
<link href="/jrfr/effectParty/css/swiper4.css?v=20200624" rel="stylesheet" type="text/css">
<script type="text/javascript">
	var SiteLanguage = "cn";
</script>
<script type="text/javascript" src="/res/common/js/string_ext.js?v=20200624"></script>
<script src="/res/jrfcms_mobi/upload/js/jquery-ui-core.min.js?v=20200624" charset="utf-8" type="text/javascript" ></script>
<script src="/res/jrfcms_mobi/js/jquery.ui.min.js?v=20200624" charset="utf-8" type="text/javascript" ></script>
<script src="/res/jrfcms_mobi/js/jrf_mobi.min.js?v=20200624" charset="utf-8" type="text/javascript" ></script>
<script src="/res/jrfcms_mobi/js/jqmobi.min.js?v=20200624" charset="utf-8" type="text/javascript" ></script>
<script src="/res/jrfcms_mobi/js/jqmobi_ui.min.js?v=20200624" charset="utf-8" type="text/javascript" ></script>
<script src="/res/jrfcms_mobi/js/jrf.wap.js?v=20200624" charset="utf-8" type="text/javascript" ></script>
<script type="text/javascript" src="/mlogin_status.html?staticPageStatus=0"></script>
<script src="/jrfr/js/product.js?v=20200624" charset="utf-8" type="text/javascript" ></script>
<script src="/jrfr/effectParty/js/swiper.animate1.0.2.min.js?v=20200624" type="text/javascript"></script>
<script src="/jrfr/effectParty/js/ScrollTrigger.js?v=20200624" type="text/javascript"></script>
<script src="/jrfr/effectParty/js/swiper4.js?v=20200624" type="text/javascript"></script>
<script type="text/javascript" src="/res/jrfcms_mobi/js/jquery.touchSwipe.min.js?v=20200624"></script>
<style id="mobiCommonStyle" type="text/css">#webnav .navbar .nav_item.nav_select a {background-color:rgba(62,52,85,1);}</style>
<style id="webBodyBackgroundStyle" type="text/css" >
</style><style id="mobiStyleModule" type="text/css"></style>
<style id="mobiCubeStyleModule" type="text/css"></style>
<!-- script -->
<script type="text/javascript">
//栏目ID
JRF.top._colId = 27968;
JRF.top._contId = 0;
JRF.top._pId = 0;
JRF.top._tplType = 3;
//模块、样式、横幅、背景、主题、欢迎页操作记录
JRF.top._designTplId = 0;
//判断当前是否是顶部窗口
JRF.top._changeStyleNum = 0;
JRF.top._extId = 0;
JRF.top._columnStyleJsonChanged = 0;  //栏目样式计数
JRF.top._columnStyleJson = {"s":2};//栏目样式
JRF.top._onlineServiceChange = 0;
JRF.top._onlineServiceJson = {"phone":{"id":-1,"fName":"电话咨询","open":true,"type":1,"number":"4006968085","typeStr":"phone","iconContent":"eab8"},"sms":{"id":-2,"fName":"信息咨询","open":true,"type":2,"number":"4006968085","typeStr":"sms","iconContent":"eabb"},"msg":{"id":-4,"fName":"在线留言","open":true,"type":4,"number":"","typeStr":"msg","iconContent":"eab9"},"qq":{"id":-5,"fName":"QQ","open":true,"type":5,"number":"10000","typeStr":"qq","iconContent":"e98c"},"index":{"id":-6,"fName":"首页","open":true,"type":6,"number":"","typeStr":"index","iconContent":"eab3"},"cart":{"id":-7,"fName":"购物车","open":true,"type":7,"number":"","typeStr":"cart","iconContent":"eab5"},"myself":{"id":-8,"fName":"我的","open":true,"type":8,"number":"","typeStr":"myself","iconContent":"eab7"}};//在线客服
JRF.top._mobiSitetiteChanged = 0; 	//用于记录网站标题是否有改动
JRF.top._mobiSitetite = {"titeName":"人工智能网站","fontType":0,"align":0,"font":{"size":12,"family":"","colorType":0,"color":"#000"}};   	//网站标题数据
JRF.top._imagePageChanged = 0;//网站欢迎页计数器
JRF.top._bgImageChanged = 0;//网站背景计数器
JRF.top._mobiLogoJson = {"mobi_h":false,"logoAlign":2,"top":"0","left":"0","bottom":"0","right":"0","logoPicUrl":"","fileId":36359,"filePath":"/getImage.jspx?imgId=5acb0e23a310c794cd2d5dbb"};//网站logo数据
JRF.top._mobiLogoJsonChanged = 0;//记录网站logo是否有隐藏显示变动
JRF.top._mobititeFlgChange = 0;//网站标题记录
JRF.top._multilanguageFlgChange = 0;//多语言记录
JRF.top._hideNowModuleCheckList = [];//用来记录用户隐藏模块的对象
JRF.top._addNowModuleCheckList = [];//用来记录还没有加载当前模块这个PANEL的时候所新增加模块的对象
JRF.top._delModuleList = new Array();//用于保存要删除的模块id
JRF.top._delModuleListChanged = 0;  //用于记录模块删除是否有改动
JRF.top._columnModuleHiddenListChanged = 0;  //用于记录栏目隐藏是否有改动
JRF.top._columnModuleHiddenList = [];  //用于记录栏目隐藏的ID集合
JRF.top._columnOrderChanged = 0;	//用于记录栏目排序是否有改动
JRF.top._columnOrderData = ""; //用於記錄栏目排序數據
JRF.top.headBannerObj=null,JRF.top.bannerNavSwiper=null;//横幅滑动事件对象
JRF.top._bannerChanged = 0;//横幅标记
JRF.top._memberTopShowFlgChange = 0;//会员登录条
JRF.top._bottomShowFlg = true;//底部服务条
JRF.top._bottomShowFlgChange = 0;//底部服务条
//魔方导航数据
JRF.top._other = {"qrcode_ImageId":"","dc":13,"cml":[],"mc":{"h":true,"c":"","t":1},"hc":{"h":true},"favIcon":{"showType":0,"id":""},"iosIcon":{"showType":0,"id":""},"mobiScreenFull":0,"templateInfo":{"templatePresetIndex":0,"templateDesignType":0}};
JRF.top._otherChange = 0;//魔方导航标记
//主题
JRF.top._templateChanged = 0;//主题操作标记
JRF.top._templateFrameId = 0;
JRF.top._templateLayoutId = 0;
JRF.top._templateType = 0;
//导航效果 0:默认 1:左上，2:右上，3:横幅上，4:横幅下，5:左下
JRF.top._templateNavLayout = 2;
JRF.top._siteId = 1839;
//文字 按钮 图片 保存状态
JRF.top.textButtonCopyRight=0;
//导航动画 1 向右滑出、2向下滑出、3向左滑出、4向上滑出
//1[11 向右、12 向下] 左上动画 ，2[23 向左、22向下] 右上动画，3[31] 横幅上，4[41] 横幅下，5[51 向右、54向上] 左下
JRF.top._templateNavAnimat = 23;
JRF.top._bannerData = {"h":false,"bn":2,"b":[{"i":"70826","t":1,"lt":0,"u":"","p":"/img/group2/M00/02/D9/wKgADl1jdFeAKSy0AAEeLxfJHH8492.jpg","w":"640","h":"300","priority":1},{"i":"70827","t":1,"lt":0,"u":"","p":"/img/group1/M00/05/57/wKgADF1jdFuAEoToAADD5M2XyNs479.jpg","w":"640","h":"300","priority":2}],"c":[],"showType":1};
JRF.top._imgPageData = {"open":false,"type":0,"sysnum":0,"fileId":0,"fileView":""};
//静态化状态
JRF.top._staticPageStatus = 0;
//html root的字体计算应该放在最前面，这样计算就不会有误差了/
var _htmlFontSize = (function(){
    var clientWidth = document.documentElement ? document.documentElement.clientWidth : document.body.clientWidth;
    if(clientWidth > 640) clientWidth = 640;
    document.documentElement.style.fontSize = clientWidth * 1/16+"px";
    return clientWidth * 1/16;
})();
var SiteLanguage = "cn";
var locationDomain = "";
JRF.is_include_mobile=0;
if((/Android|webOS|MicroMessenger|iPhone|iPod|BlackBerry/i.test(navigator.userAgent) ) && JRF.is_include_mobile==1) {
    if(JRF.staticPageStatus=="1"){
        window.location.href = JRF.curr_protocol+'/mIndex.html';
    }else{
        window.location.href = JRF.curr_protocol+'/mIndex.html';
    }
}
var newCopyRight2019 = 1;
</script>
</head>
<body id="bodyDesign" class="main_body">
<!-- 背景页 -->
<div id="web_background" class="web_background" style="display:none;">
		<div id="webBodyBackground" class="webBackground webBackgroundFix"></div>
</div><!-- 遮罩 -->
<!-- 遮罩层 -->
<div class="web_bg" id="web_bg"></div>
<!-- 加载层 -->
<div class="web_loading" id="webLoading"></div>
<!-- header end -->

<!-- banner  end -->
<div class="product_content" id="product_content">
<!-- 产品内容 -->
<div id="module17584" class="form column c-mobidetail" _headerhiden="1" _autoheight="1" _moduleid='390' cont_id="17584"  _modulecode="productContent" _mcid='0' is_cont="1">
    <div class="c-mobisite"></div>
	<div class="myj_top">
		<a class="l_arrow" href="/productShow/mIndex.html"></a>
		<h4>产品详情</h4>
	</div>

	<div class="formMiddle formMiddle17584">
		<div class="middleCenter middleCenter17584">
			<div class="formMiddleContent formMiddleContent17584">
				<div class="newsDetail" id="newsDetail17584">
					<div id='product_image' class='product_image'>
						<div>
								<div id="MobProductContent" class="swiper-container c-mobiproductdetail">
									<div class="swiper-wrapper">
                                            <div class="swiper-slide">
											    <img class="" src="/img/group1/M00/02/22/wKgBS1rWusSAWoyIAAA5zHfei8A972.jpg"/>
                                            </div>
                                            <div class="swiper-slide">
											    <img class="" src="/img/group2/M00/00/19/wKgBTFrWuoCAVzpwAAAsy0Bihu4985.jpg"/>
                                            </div>
									</div>
										<div class="swiper-pagination"></div>
								</div>
						</div>
					</div>
					<div class="choosing_div">
						<div class="c-mobiprosec">
							<span class="c-mobitite">双频路由器千兆无线家用穿墙高速wifi</span>
							
						</div>
					</div>
					
					<div class="jj_section c-mflsec">
						<a href="javascript:openClassify();">
							<span>选择分类</span>
							<div class="m_arrow"></div>
						</a>
					</div>
					<div class="jj_section c-mprosec">
						<a href="javascript:openPrudt();">
							<span>产品参数</span>
							<div class="m_arrow"></div>
						</a>
					</div>
					<div class="jj_section margbtm c-detailtab"  >
						<ul class="disflex">
							<li><a class="active" href="javascript:void(0);" onclick="showProdt(this);">产品详情</a></li>
							<li style="display: none;"><a href="javascript:void(0);" onclick="showPl(this);">评论列表</a></li>
						</ul>
					</div>
					<div >
						<!-- 内容 -->
						<div class="richContent content"><img alt="" src="/img/group2/M00/00/7D/wKgBTFsiUzeAS82NAABVHbIzzg0021.jpg" /><img alt="" src="/img/group1/M00/02/AF/wKgBS1siUuWACaiJAAElTvpT84o327.jpg" /><img alt="" src="/img/group2/M00/00/7D/wKgBTFsiUzeAdi_gAAEVGKU-Z5k918.jpg" /><img alt="" src="/img/group1/M00/02/AF/wKgBS1siUuaAAcIXAAEF4jZvjf8626.jpg" /></div>
						<!-- 产品评论 -->
						<div class="detail_table cl" >
							<div id="appraiseDiv">
	<!-- 评论展示 -->
		<div class="no_comment">
			<p><i></i>暂时还没有评论哦！</p>
		</div>	
	<script type="text/javascript">
	function ajaxAppraise(pageNo){
		var pn = pageNo;
		var product_id = "17584";
		var ps = 3;
		var styleList = "m_a_list_1-3"
		$.ajax({
			url:'/ajaxAppraise.jspx',
			type:'get',
			dataType:'html',
			data:{"pageNo":pn,"pageSize":ps,"productId":product_id,"styleList":styleList},
			success:function(data){
				$("#appraiseDiv").empty();
				$("#appraiseDiv").append(data);
			}
		});
	}
	</script>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 选择分类弹出层 -->
	<div class="popWindow select_classify" style="display: none;">
		<div class="pop_hd">
			<div class="product_pic">
				<img src="/img/group1/M00/02/22/wKgBS1rWusSAWoyIAAA5zHfei8A972.jpg" alt="">
			</div>
			<div class="product_attr">
				<p class="inventory" >库存<span class="inventory_num" id="inventory_num">2</span>件</p>
			</div>
			<a class="close_pop" href="javascript:closePop();"></a>
		</div>
		<div class="pop_bd">
                <div class="select_zcolor specItems">
                    <p class="type_tite">规格：</p>
                    <div class="specVal type_list">
                            <input type="radio" name="spec" value="默认" attr_price="119.00" attr_count="99" />
                            <label for="" class="myj_check" >默认</label>
                    </div>
                </div>
			<div class="type_num have_select">购买数量<div class="shop_add">
				<span class="s_reduce disabled gy_reduce" onclick="decCountFun(this);">-</span>
				<input type="number" pattern="[0-9]*" id="productCount" value="1" inventory_num="2" onpaste="return false;" style="ime-mode:disabled" onkeyup="value=value.replace(/[^\d]/g,'')" oninput="if(value.length>5)value=value.slice(0,5)"/>
				<span class="s_reduce" onclick="addCountFun(this);">+</span>
				</div>
			</div>
		</div>
	</div>
	<!-- 产品参数弹出层 -->
	<div class="popWindow prodt_parameter" style="display: none;">
		<div class="pop_hd">
			<p>产品参数</p>
		</div>
		<div class="pop_bd">
			<div class="productParam">
				<div class="param_list">
					<span class="param_span">库存量</span>
					<p valign="top" class="propValue "><span class="inventory_num">2</span></p>
				</div>
				<div class="param_list">
					<span class="param_span">销量</span>
					<p valign="top" class="propValue "><span class="sales_num">8</span></p>
				</div>
				<div class="param_list">
					<span class="param_span">市场价</span>
					<p valign="top" class="propValue "><span>0</span></p>
				</div>
				<div class="param_list">
					<span class="param_span">单价</span>
					<p valign="top" class="propValue "><span>119.00</span></p>
				</div>
							<div class="param_list"><span class="param_span">编号</span>000008</div>
			</div>
		</div>
		<div class="pop_ft">
			<a href="javascript:closePop();" class="c-mobicolsepara">关闭</a>
		</div>
	</div>
	<!-- 分享弹出层 -->
</div>
<!-- 遮罩 -->
<div id="grayBg" class="gray_bg" onclick="closePop();"></div>
    <style>
    #module17584 .myj_top{background:rgba(255,159,25,1);}
    #module17584 .l_arrow:before{border-right-color:rgba(255,159,25,1);}
    #module17584 .buy_znow{background:rgba(255,159,25,1);}
    #module17584 ul.disflex li a.active{color:rgba(255,159,25,1);border-color:rgba(255,159,25,1);}
    #module17584 .c-mobicolsepara{background:rgba(255,159,25,1);}
    #module17584 .prodt_parameter .pop_ft a,#module17584 .share_list .pop_ft a{background:rgba(255,159,25,1);}
    #module17584  .c-mobiprosec a i:before{color:rgba(255,159,25,1);}
    /*#module17584  .collect.active i:before{color:rgba(255,159,25,1);}*/
    </style>
<script type="text/javascript">
var p_staticPageStatus = 0;
var loginTip;
$(function(){
    var SiteLanguage = "cn";
    if("undefined" == typeof SiteLanguage || SiteLanguage == "cn"){
        loginTip = '您还未登录，是否跳转到登录页？';
    }else if(SiteLanguage == "en"){
        loginTip = 'You are not logged in, do you jump to the login page?';
    }else if(SiteLanguage == "tcn"){
        loginTip = '您還未登錄，是否跳轉到登入頁？';
    }else if(SiteLanguage == "jap"){
        loginTip = 'あなたはまだ登録されていない、登録ページに遷移するか？';
    }else if(SiteLanguage == "kor"){
        loginTip = '당신 아직 로그인 여부를 바로가기 등록 페이지?';
    }else if(SiteLanguage == "lo"){
        loginTip = 'ເຈົ້າຍັງບໍ່ໄດ້ເຂົ້າສູ່ລະບົບ, ບໍ່ວ່າຈະເປັນເພື່ອເຕັ້ນໄປຫາຫນ້າເຂົ້າສູ່ລະບົບ?';
    }else if(SiteLanguage == "th"){
        loginTip = 'คุณยังไม่ได้เข้าสู่ระบบ ,ว่ากระโดดไปยังหน้าเข้าสู่ระบบ？';
    }else if(SiteLanguage == "es"){
        loginTip = 'Si usted no ha firmado aún, saltar a la página de inicio de sesión？';
    }else if(SiteLanguage == "ru"){
        loginTip = 'Вы  не вошли в систему  ,если  перейти на  страницу входа ？';
    }else if(SiteLanguage == "fra"){
        loginTip = "Vous n'avez pas enregistré, si le saut à la page d'ouverture de session?";
    }else if(SiteLanguage == "it"){
        loginTip = 'Non Hai Fatto saltare il Login, se la Pagina？';
    }else if(SiteLanguage == "de"){
        loginTip = 'Ob sie nicht angemeldet, springen auf die login - Seite?';
    }
	$(".itemVal label").click(function(){
		$(this).addClass('m_selected').siblings().removeClass('m_selected');
		$(this).prev().attr('checked','checked');
		$(this).siblings().prev().removeAttr('checked');
	});
    //规格切换
    $(".specVal label").click(function(){
        $(this).addClass('m_selected').siblings().removeClass('m_selected');
        $(this).prev().attr('checked','checked');
        $(this).siblings().prev().removeAttr('checked');
        var count = $(this).prev().attr("attr_count");
        var price = $(this).prev().attr("attr_price");
        $("#inventory_num").html(count);
        $("#product_price").html(price);
        $("#productCount").attr("inventory_num",count);
    });

    if(p_staticPageStatus==1){
    	//独立部署
    	loadProdutData();
    }else{
    	if($(".specVal label").length>0){
            $(".specVal label").eq(0).click();
        }
    }

	var mySwiper = new Swiper ('.swiper-container.c-mobiproductdetail', {
	    direction: 'horizontal',
	    // autoplay : 2000,
		speed:300,
	    loop: true,
        pagination: {
            el: '.swiper-pagination',
            type: 'fraction'
        }
	  });

//    图片尺寸处理
    $("#product_image .swiper-slide").each(function () {
        var liWidth = parseInt($(this).width());
        var liHeight = parseInt($(this).height());
        var licont = liWidth / liHeight;
        var imgWidth = parseInt($(this).find("img").width());
        var imgHeight = parseInt($(this).find("img").height());
        var imgcont = imgWidth / imgHeight;
        var marginLeft = (liHeight * imgcont - liWidth) / 2;
        var marginTop = (liWidth / imgcont - liHeight) / 2;
        if (licont >= imgcont) {
            $(this).find("img").css({
                height: "auto",
                width: "100%",
                "margin": "0"
            })
        } else {
            $(this).find("img").css({
                height: "auto",
                width: "100%",
                "margin": "0"
            })
        }
    })
	
});
function buyProduct(pid,type){
	if(JRF.mloginStatus==1){
		var productCount = $("#productCount").val();
		var inventoryNum = $("#productCount").attr("inventory_num");
		if(parseInt(productCount)>0){
			if(parseInt(productCount)<=parseInt(inventoryNum)){
				var gouWu = new Array();
				var len = $("#module"+pid).find(".buyItems").length;
				$("#module"+pid).find(".buyItems").each(function(index,obj){
					var gouwu_name = $(obj).find(".type_tite").attr("attr_name");
					var gouwu_val = "";
					if($(obj).find("input[type='radio'][checked='checked']").length>0){
						gouwu_val = $(obj).find("input[type='radio'][checked='checked']").val();
					}
					if(gouwu_name!=""&&gouwu_val&&gouwu_val!=""){
						gouWu.push(gouwu_name+":"+gouwu_val);
					}
				});
				if(gouWu.length<len){
					JRF.layer("请选择购买项！");
					return ;
				}
				var standard = "";
				if(gouWu.length>0){
					standard ="{"+gouWu.join(',')+"}";
				}
                var specName = "";
                $("#module"+pid).find(".specItems").each(function(index,obj){
                    if($(obj).find("input[type='radio'][name='spec'][checked='checked']").length>0){
                        specName = $(obj).find("input[type='radio'][name='spec'][checked='checked']").val();
                        return
                    }
                });
                $.ajax({
                    type : 'post',
                    url : document.location.protocol+'/ucenter/checkProductInventoryNum.jspx',
                    data : {"pid":pid,"count":productCount,"spec":JRF.encodeUrl(specName)},
                    dataType:'json',
                    success : function(data){
                        if(data.code=="200"){
                            if(data.flg){
                                if(type==1){
                                    var shopAttribute = JRF.encodeUrl(standard);
                                    //立即购买
                                    location.href=document.location.protocol+"/ucenter/m_shoppingBuyNow.jspx?productId="+pid +"&count=" +productCount+"&shopAttribute="+shopAttribute+"&spec="+JRF.encodeUrl(specName);
                                }else if(type==2){
                                    //加入购物车
                                    $.ajax({
                                        type : 'post',
                                        url : document.location.protocol+'/ucenter/addShoppingToCart.jspx',
                                        crossDomain: true,
                                        xhrFields:{withCredentials:true},
                                        data : {"pid":pid,"count":productCount,"shopAttribute":standard,"spec":JRF.encodeUrl(specName)},
                                        dataType:'json',
                                        success : function(data){
                                            if(data.code=="1"){
                                                JRF.layer("商品已加入购物车！");
                                                return ;
                                            }else{
                                                JRF.layer(data.message);
                                                return ;
                                            }
                                        }
                                    });
                                }
                            }else{
                                $.alert(data.message);
                            }
                        }else{
                            $.alert(data.message);
                        }
                    }
                });

			}else{
				JRF.layer("商品库存不足！");
				return ;
			}
		}else{
			JRF.layer("商品数量无效！");
			return ;
		}
	}else{
		return JRF.login();
	}
}

//收藏夹
function addMyDotey(obj,id){
	if(JRF.mloginStatus==1){
		$.ajax({
			url:document.location.protocol+'/ucenter/addOrDelMemberCollect.jspx',
			crossDomain: true,
			xhrFields:{withCredentials:true},
			type:'post',
			data:{"productId":id},
			dataType:'json',
			success:function(data){
				if(data.code=="200"){
					if(data.type=="1"){
						JRF.layer("商品收藏成功！");
						$(obj).addClass("active");
						$(obj).attr("is_star","1");
					}else if(data.type=="2"){
						JRF.layer("取消收藏成功！");
						$(obj).removeClass("active");
						$(obj).attr("is_star","0");
					}
				}else{
					JRF.layer("收藏失败！");
				}
			}
		});
	}else{
		return JRF.login();
	}
}

function decCountFun(obj){
	var inventoryNum = $("#productCount").attr("inventory_num");
	var num = $("#productCount").val();
	if(num==""){
		num = 1;
	}
	if(parseInt(num)>1){
		num = num-1;
		$("#productCount").val(num);
		if(num==1){
			$(obj).addClass("gy_reduce");
		}else{
			$(obj).removeClass("gy_reduce");
		}
	}else{
		$("#productCount").val(1);
		$(obj).addClass("gy_reduce");
	}
}

function checkNum(obj){
	var num = $(obj).val();
	var inventoryNum = $("#productCount").attr("inventory_num");
	if(num==""){
		num=1;
		$("#productCount").val(1);
		return 
	}
	if(parseInt(num)>parseInt(inventoryNum)){
		JRF.layer("商品库存不足！");
		$("#productCount").val(inventoryNum);
		return ;
	}
	if(parseInt(num)==0){
 		$("#productCount").val(1);
		return ;
	}
}

function addCountFun(obj){
	var inventoryNum = $("#productCount").attr("inventory_num");
	var num = $("#productCount").val();
	if(num==""){
		num = 1;
	}
	num=parseInt(num)+1;
	if(parseInt(num)>parseInt(inventoryNum)){
		num = inventoryNum;
		//禁用 不可点击
		$(obj).addClass("gy_reduce");
		return ;
	}
	$("#productCount").val(num);
	if(num>=1){
		$(obj).siblings("span").removeClass("gy_reduce");
	}
}     
// 选择分类弹框
function openClassify(){
	$("#grayBg").show();
	$(".select_classify").show();
	$(".select_classify").animate({
		'bottom':'-1'
	});
    bodyStop();
};
//页面滚动
function bodyStop(){
    $("body,html").css({
        "overflow":"hidden",
        "height":"100%",
        "position":"relative"
    });
 }
 function bodyScroll(){
     $("body,html").css({
         "overflow":"auto",
         "height":"auto",
         "position":"static"
     });
 }
// 产品参数弹框
function openPrudt(){
	$("#grayBg").show();
	$(".prodt_parameter").animate({
		'bottom':'-1'
	});
    $(".prodt_parameter").show();
    bodyStop();
};

// 分享弹框
function openShare(){
	$("#grayBg").show();
	$(".share_list").animate({
		'bottom':'-1'
	});
    $(".share_list").show();
};
// 关闭弹框
function closePop(){
	$(".popWindow").animate({
		'bottom':'-200%'
	});
    $(".popWindow ").hide();
	$("#grayBg").hide();
    bodyScroll();
};
// 显示产品详情
function showProdt(obj){
	if($(obj).hasClass("active")){
		return false;
	}else{
		$(obj).addClass('active').parent().siblings().children().removeClass('active');
		$(".detail_table").hide();
		$(".richContent").show();
	}
};
// 显示评论列表
function showPl(obj){
	if($(obj).hasClass('active')){
		return false;
	}else{
		$(obj).addClass('active').parent().siblings().children().removeClass('active');
		$(".detail_table").show();
		$(".richContent").hide();
	}
};

function loadProdutData(){
	var product_id = "17584";
	var baseUrl = document.location.protocol+"";
	$.ajax({
		url:baseUrl+'/loadProdutData.jspx',
		type:'get',
		dataType:'json',
		crossDomain: true,
		xhrFields:{withCredentials:true},
		data:{"pid":product_id},
		success:function(data){
			$(".sales_num").html(data.salesNum);
			if(data.specPrice && data.specPrice.length>0 && $(".specVal label").length > 0){
				$(".specVal label").each(function(i,o){
					var spec = $(o).prev().val();
					$.each(data.specPrice,function(j,q){
						if(q.spec==spec){
							$(o).prev().attr("attr_count",q.specCount);
							return 
						}
					});
				});
			}else{
				$(".inventory_num").html(data.inventoryNum);
				$("#productCount").attr("inventory_num",data.inventoryNum);
				if(data.inventoryNum>0){
					$(".add_shoppingcar").removeClass("sold_out");
					$(".add_shoppingcar").attr("onclick","openClassify();");
					$(".buy_znow").removeClass("sold_out");
					$(".buy_znow").attr("onclick","openClassify();");
					$("#buy_znow").attr("onclick","buyProduct('17584',1);")
					$("#add_shoppingcar").attr("onclick","buyProduct('17584',2);")
				}else{
					$(".add_shoppingcar").addClass("sold_out");
					$(".add_shoppingcar").removeAttr("onclick");
					$(".buy_znow").addClass("sold_out");
					$(".buy_znow").removeAttr("onclick");
				}
			}
			if($(".specVal label").length>0){
		        $(".specVal label").eq(0).click();
		    }
			if(data.isCollect){
				$(".collect").addClass("active").end().attr("is_star",1);
			}
		}
	});
}
$("#module17584 .swiper-slide").each(function(){
    var liWidth = parseInt($(this).parents("#picBox").width());
    var liHeight = parseInt($(this).parents("#picBox").height());
    var licont = liWidth/liHeight;

    var imgWidth = parseInt($(this).find("img").width());
    var imgHeight = parseInt($(this).find("img").height());
    var imgcont = imgWidth/imgHeight;



    var marginLeft = (liHeight*imgcont-liWidth)/2;
    var marginTop = (liWidth/imgcont-liHeight)/2;

    if(licont >= imgcont){
        $(this).find("img").css({
            height:"auto",
            width:"100%",
            "margin-top":-marginTop
        })
    }else{
        $(this).find("img").css({
            height:"100%",
            width:"auto",
            "margin-left":-marginLeft
        })
    }
})

</script>
</div>

<!-- script -->
<input id="wx_hid_contentId" type="hidden" value=""/>
<input id="wx_hid_productId" type="hidden" value="17584"/>
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script type="text/javascript">
function initBrowseEnvironment(){
	var ua = window.navigator.userAgent.toLowerCase();
	//判断是否是微信环境
	if(ua.match(/MicroMessenger/i) == 'micromessenger'){
	    //微信环境
	    wx.miniProgram.getEnv(function(res) {
	        if (res.miniprogram) {
	            // 小程序环境下逻辑 
	            setBrowseEnvironment("wx_applets");
	            $("#qqBottom").find("a").attr("href","javascript:void(0);");
	        }else {
	            //非小程序环境下逻辑
	            setBrowseEnvironment("wx_public");
	            initWxShare();
	        }
	    });
	    
	}else{
		//非微信环境逻辑
		setBrowseEnvironment("wap");
	}
}

function isWeiXin(){
	//微信浏览器判断
	var ua = window.navigator.userAgent.toLowerCase();
	if(ua.match(/MicroMessenger/i) == 'micromessenger'){
		return true;
	}else{
		return false;
	}
}

if($("#web_splash").length>0){
	var splash_close_time = $("#web_splash").attr("splash_close_time");
	var splash_close_flg = $("#web_splash").attr("splash_close_flg");
	if(splash_close_flg!=1){
		setTimeout(function(){
			$("#web_splash").slideUp(200);
			//滚动条开启
			$("#bodyDesign").css("overflow-y","auto");
		},splash_close_time*1000);
	}
}


if($("#header").find("#logoSrc").length>0){
	var logoObj = $("#logoSrc");
    if(JRF.top._mobiLogoJson){
	    logoObj.attr("src",JRF.top._mobiLogoJson.filePath);
        logoObj.onload=function(){
        }
        $("#pageLogo").addClass("positionLogo"+JRF.top._mobiLogoJson.logoAlign);
        $("#pageLogo").attr("href",JRF.top._mobiLogoJson.logoPicUrl);
        $("#pageLogo").css('margin-top',JRF.top._mobiLogoJson.top+'px').css("margin-left",JRF.top._mobiLogoJson.left+'px');
    }
}
//设计模式
if(JRF.top._isOpenDesign){
	//切换页面内容后删除外层操作条
	$(Jrwap.getFrameByClass("moduleToolbarlayer")).remove();
	Jrwap.placeholderContainer();
	//加载操作条
    moduleJsonReq(function(){
    	//模块操作条
    	initClickModule();
    	Jrwap.initModuleToolbar();
        Jrwap.initBannerToolbar();
        Jrwap.initFooterToolbar();
    	Jrwap.initMultilanguageToolbar();
    	Jrwap.initNavListToolbar();
    	Jrwap.initCustomerServiceToolbar();
    	//模块标题事件
       	Jrwap.editModuleBannertiteFn();
        Jrwap.editCopyRightContentEvent();
    });

    //拖拽
    Jrwap.floatModuleDragable();
    //拉伸
    Jrwap.floatModuleResizable();
	if($("#web_main_content").length>0){
		$("#web_main_content").find(".form").addClass("column");
	}
	Jrwap.changeNavigatorUrl(Jrwap.getPreviewDocument().URL);
	Jrwap.initPageDesign(JRF.top._colId);
	Jrwap.imgHoverSize();

    $(function(){
        //动画隐藏
        $(Jrwap.getFrame("sk-shadow")).hide();
        top.sessionStorage.removeItem("backUrl");
    });
	
}

//记录当前点击模块  防止点击事件穿透  删除当前模块操作条
var editTextCurrentMcId = 0;
function initClickModule(){

    $("#web_main_content").on("mousedown",".ztextbox",function(ev){
    	ev.stopPropagation();
    });

    //绑定所有模块的mousedown事件
    $("#web_main_content").mousedown(function(ev){
        editTextCurrentMcId = $(this).find(".form ").attr("_mcid");
    });


    // 点击页面删除模块操作条
    $('html').mousedown(function(ev){
        //如果为文本模块设置连接时 点穿到html  则不进行操作
        if(JRF.top._changeStyleNum>0 && $("a[href=#addUrlCurrentSite]").length ==0){
            //保存按钮模块值
            Jrwap.saveButtonTextStyleSetting();
            //保存文本模块内容
            Jrwap.saveTextModuleContent();
            //保存版权信息
            Jrwap.saveCopyRightContent();
            //保存模块标题内容
            Jrwap.saveModuleBannertite();
            Jrwap.styleChanged();
            JRF.top.textButtonCopyRight = 0;
            if(editTextCurrentMcId != 0){
                $(".moduleToolbarlayer:not(#moduleToolbarLayer_"+editTextCurrentMcId+")").remove();
                $(".moduletitelayer:not(#moduletiteLayer_"+editTextCurrentMcId+")").remove();
                editTextCurrentMcId = 0;
            }else{
                if($(".c-choosecolor").length == 0){//模块操作条存在 颜色选择器时不进行删除
                    $(".moduleToolbarlayer").remove();
                    $(".moduletitelayer").remove();
                }
            }
        }
    });
}

Jrwap.AllShowTopForBottom();


//文章内容页分页
function changePage(pageId , contentId){
	$.ajax({
		type:'post',
		url:JRF.curr_protocol+'/ajax/MobiContentPage.jsp',
		crossDomain: true,
		xhrFields:{withCredentials:true},
		data:{'cmd':'content','contentId': pageId},
		success:function(data){
			var result = $.parseJSON(data);
			if(result.success){
				//$('#module'+contentId).remove();
				var html = result.moduleHtml;
				if(JRF.top._previewPhone == "true"){
					html = result.moduleHtml;
				}
				if(JRF.top._isOpenDesign){
					Jrwap.getPreviewWindow().Jrwap.refreshModule(contentId, html,'文章内容');
				}else{
					Jrwap.refreshModuleByVisitor(result.id, html);
				}
				//重新计算高度
				Jrwap.AllShowTopForBottom();
				//回滚到最上面
				pageScroll();
			}
		}
	})
}
//文章列表内容页分页
function changeContentListPage(type , pageNo , totalPage8 , tagId){
	if(totalPage > 0){
		if(type == 'up'){
			if(pageNo > 1){
				pageNo = pageNo - 1;
			}else{
				pageNo = totalPage;
			}
		}else{
			if(pageNo == totalPage){
				pageNo = 1;
			}else{
				pageNo = pageNo + 1;
			}
		}
		$.ajax({
			type:'post',
			url:JRF.curr_protocol+'/ajax/MobiContentPage.jsp',
			crossDomain: true,
			xhrFields:{withCredentials:true},
			data:{'cmd':'contentList','pageNo': pageNo,'tagId': tagId},
			success:function(data){
				var result = $.parseJSON(data);
				if(result.success){
					//$('#module'+tagId).remove();
					var html = result.moduleHtml ;
					if(JRF.top._previewPhone == "true"){
						html = result.moduleHtml;
					}
					if(JRF.top._isOpenDesign){
						Jrwap.getPreviewWindow().Jrwap.refreshModule(result.id, html,result.moduleName);
					}else{
						Jrwap.refreshModuleByVisitor(result.id, html);
					}
					//重新计算高度
					Jrwap.AllShowTopForBottom();
					//回滚到最上面
					pageScroll();
				}
			}
		});
	}
}

//产品分页
function changeProductPage(mcId,type,pageNo,totalPage){
	if(type == 'up'){
		if(pageNo > 1){
			pageNo = pageNo - 1;
		}else{
			pageNo = totalPage;
		}
	}else{
		if(pageNo == totalPage){
			pageNo = 1;
		}else{
			pageNo = pageNo + 1;
		}
	}
	var staticPageStatus = JRF.top._staticPageStatus;
	$.ajax({
		type:'post',
		url:JRF.curr_protocol+'/ajax/mobiProductPageOn.jspx?mcid='+mcId,
		crossDomain: true,
		xhrFields:{withCredentials:true},
		data:{'pageNo': pageNo,"staticPageStatus":staticPageStatus},
		success:function(data){
			var result = $.parseJSON(data);
			if(result.success){
				var html = result.div;
				if(JRF.top._previewPhone == "true"){
					html = result.div;
				}
				if(JRF.top._isOpenDesign){
					Jrwap.getPreviewWindow().Jrwap.refreshModule(result.id, html,result.moduleName);
				}else{
					Jrwap.refreshModuleByVisitor(result.id, html);
				}
				//重新计算高度
				Jrwap.AllShowTopForBottom();
				//回滚到最上面
				pageScroll();
			}
		}
	});
}

function pageScroll() { 
	scroll(0,0);
}
//文章内容 分享
function shareContent(type){
	if(typeof(JRF.top.document.getElementById("navigatorUrlInput")) == "undefined"){
		var urlInput = JRF.top.document.getElementById("navigatorUrlInput").value;
	}else{
		var urlInput = window.document.URL
	}
	if(type == 'sina_weibo'){
		window.open('http://service.weibo.com/share/share.php?tite='+urlInput+'&url='+urlInput+'');
	}else if(type == 'qq_zone'){
		window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?summary='+urlInput+'&url='+urlInput+'&tite='+urlInput+'');
	}else if(type == 'qq_weibo'){
		window.open('http://v.t.qq.com/share/share.php?tite='+urlInput+'&url='+urlInput+'');
	}else if(type == 'kaixin001'){
		window.open('http://www.kaixin001.com/rest/records.php?content='+urlInput+'&style=11');
	}else if(type == 'renren'){
		window.open('http://widget.renren.com/dialog/share?resourceUrl='+urlInput+'&description='+urlInput+'&tite='+urlInput+'');
	}else if(type == 'douban'){
		window.open('http://shuo.douban.com/!service/share?name='+urlInput+'&text='+urlInput+'');
	}else if(type == 'sohu_weibo'){
		window.open('http://t.sohu.com/third/post.jsp?url='+urlInput+'&tite='+urlInput+'');
	}else if(type == 'netease_weibo'){
		window.open('http://t.163.com/article/user/checkLogin.do?info='+urlInput+'&togImg=true');
	}else if(type == 'baidu_tieba'){
		window.open('http://tieba.baidu.com/i/app/open_share_api?comment=&url='+urlInput+'&tite='+urlInput);
	}
}

//分享到QQ
function shareQQ(site,tite){
	var pageHref = window.location.href;
	if(typeof(JRF.top.document.getElementById("navigatorUrlInput")) == "undefined"){
		pageHref = JRF.top.document.getElementById("navigatorUrlInput").value;
	}
	var shareQQUrl = "http://connect.qq.com/widget/shareqq/index.html?url="+encodeURIComponent(pageHref)+"&desc="+site+"&tite="+tite+"&summary=&pics=&flash=&site="+site;
	window.open(shareQQUrl);
	
}
//分享到新浪微博
function shareWeiBo(site,tite){
	var pageHref = window.location.href;
	if(typeof(JRF.top.document.getElementById("navigatorUrlInput")) == "undefined"){
		pageHref = JRF.top.document.getElementById("navigatorUrlInput").value;
	}
	var shareWBUrl = "http://service.weibo.com/share/share.php?count=1&url="+encodeURIComponent(pageHref)+"&tite="+tite;
	window.open(shareWBUrl);
}
//分享到QQ空间
function shareQQZ(site,tite){
	var pageHref = window.location.href;
	if(typeof(JRF.top.document.getElementById("navigatorUrlInput")) == "undefined"){
		pageHref = JRF.top.document.getElementById("navigatorUrlInput").value;
	}
	var shareQQzUrl = "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?"+encodeURIComponent(pageHref)+"&summary="+site+"&tite="+tite;
	window.open(shareQQzUrl);
}
//分享到微信
function shareWechat(){
    if(isWeiXin()){
        var html = '<div class="c-sharetip c-wxsharetip">'+
                '<div class="tipimg"></div>'+
                '<div class="c-tipbtn"><a class="knowbtn" href="javascript:void(0);" onclick="backContent(this);"></a></div>'+
                '</div>'
    }else{
        var html = '<div class="c-sharetip">'+
                '<div class="c-tipimg"></div>'+
                '<div class="c-tiptext">'+
                '<span>请使用浏览器的分享功能</span>'+
                '<span>分享到微信</span>'+
                '</div>'+
                '<a class="knowbtn" href="javascript:void(0);" onclick="backContent(this);">知道了</a>'+
                '</div>'

    }
    $("#bodyDesign").append(html);
}
//分享到微信朋友圈
function shareWechatMoments(){
	if(isWeiXin()){
        var html = '<div class="c-sharetip c-wxsharetip">'+
        '<div class="tipimg"></div>'+
        '<div class="c-tipbtn"><a class="knowbtn" href="javascript:void(0);" onclick="backContent(this);"></a></div>'+
        '</div>'
	}else{
       var html = '<div class="c-sharetip">'+
               '<div class="c-tipimg"></div>'+
        '<div class="c-tiptext">'+
        '<span>请使用浏览器的分享功能</span>'+
        '<span>分享到微信</span>'+
        '</div>'+
        '<a class="knowbtn" href="javascript:void(0);" onclick="backContent(this);">知道了</a>'+
        '</div>'

	}
    $("#bodyDesign").append(html);
}
function backContent(obj){
    $(obj).parents(".c-sharetip").remove();
}

function delShareWechatLayer(obj){
	$(obj).remove();
}

function showOldSearch(){
	var isHide = $('#searchOld').css('display');
	if(isHide == 'none'){
		$('#searchOld').slideDown();
	}else{
		$('#searchOld').slideUp();
	}
}

function refreshCotnentHtml(){
	if(!(top.Jrwap.checkSaveBar())){
		window.location.reload(true);
	}
}
function editHeader(){
	top.Wapsite.loadSettingLayer();
	$(window.parent.document).contents().find('#baseSetting').click();
}
function editBanner(){
	top.Wapsite.loadBannerLayer();
}

function editChannel(){
	top.Wapsite.loadChannelLayer();
}

function editFooter(){
	var options = {
		tite: "编辑底部",
		frameSrcUrl : '/jrfadmin/jrfcms/module/v_mobi_efoot_content.do?client=mobile',
		height: 356,
		width: 560,
		callArgs : "editFooter",
		closeFunc : changeFooterData
	};
	pbwId = JRF.popupWindow( options );
}

function changeFooterData(back){
	if(back && back.isSave==1){
		$("#footer_copyright").html(back.data);
	}
}
/** 多语言样式*/
function editMultilanguage(siteId){
    if(!siteId){
        siteId =  JRF.top._siteId;
    }
	top.Jrwap.editMultilanguage(siteId);
}

/** 产品搜索页样式*/
function editProductSearchStyle(siteId){
	top.Jrwap.editProductSearchStyle(siteId);
}

function editCusTomerService(){
	top.Wapsite.loadChannelLayer(true);
}
function closeSplash(){
	$("#web_splash").slideUp(200);
	//滚动条开启
	$("#bodyDesign").css("overflow-y","auto");
}

//文章分类 分组效果
function showNewsGroupDiv(obj,tagDivProp){
	if($(obj).hasClass("arrow_show")){
		$(obj).removeClass("arrow_show");
		$(obj).next().hide();
	}else{
		$(obj).addClass("arrow_show");
		$(obj).next().show();
	}
}
//产品分类显示
function showTagDiv(obj,tagDiv){
	var isHide = $('#'+tagDiv).css('display');
	if(isHide == 'none'){
		$(obj).addClass("arrow_show");
		$('#'+tagDiv).show();
	}else{
		$(obj).removeClass("arrow_show");
		$('#'+tagDiv).hide();
	}
}

//产品滑动效果
function productSlide(){
	var divSwipe = document.getElementById('MobProductContent');
	window.mySwipe = Swipe(divSwipe, 
			{
				startSlide: 0,
				auto: jiangeshijian,
				continuous: true,
				disableScroll: true,
				stopPropagation: true,
				callback: function(index, element) {
					$("#ulCircles li").eq(index).addClass("cur").siblings().removeClass("cur");
				}
			}
		);
		$("#ulCircles li").click(
			function(){
				mySwipe.slide($(this).index(),2000);
			}
		);
}

//文件下载
function fileDownload(fileId){
	window.location.href=JRF.curr_protocol+'/manage/mongodbFileDownload.jsp?fileid='+fileId;
}

function logout(){
	$.ajax({
		url:JRF.curr_protocol+'/ucenter/logout.jspx',
		crossDomain: true,
		xhrFields:{withCredentials:true},
		type:'get',
		dataType:'json',
		success:function(data){
			window.location.reload();
		}
	});
}



function refreshModuleContent(mcId){
	if(mcId){
		$.ajax({
			url:JRF.curr_protocol+'/ajax/refreshModuleContent.jsp?mcId='+mcId,
			crossDomain: true,
			xhrFields:{withCredentials:true},
			type:'get',
			success:function(data){
				var res = $.parseJSON( data );
				if(res.code==200){
					Jrwap.replaceCurrentModule(res.id,res.div);
				}
			}
		});
	}
}

/** 卡券领取*/
function claimCoupon(cid){
	if(JRF.mloginStatus=="1"){
		if(cid){
			$.ajax({
	            type:"post",
	            url:JRF.curr_protocol+"/ucenter/coupon/o_add.jspx",
	            crossDomain: true,
				xhrFields:{withCredentials:true},
	            data:{"cid":cid},
	            dataType:"json",
	            success:function(data){
	                if(data.status == "success"){
	                    JRF.layer("领取成功！");
	                }else if(data.status == "failure"){
	                	JRF.layer("已经领取无法继续领取！");
	                }else if(data.status == "levelnot"){
	                	JRF.layer("不符合会员级别！");
                    }else{
	                    JRF.layer("领取失败！");
	                }
	            }
	        });
		}
	}else{
		return JRF.login();
	}
}

$(function(){

	//如果存在闪屏页，关闭滚动条效果
	if($("#web_splash").is(":visible")){
		$("#bodyDesign").css("overflow-y","hidden");
	}
    Jrwap.moduleInitFolat();
    
    if($("#product_content").length>0){
        $("#product_content").removeClass("moveAnimation");
    }
	$("#webMultilingualArea").on("mouseover",".language_select",function(){
		$(this).find(".arrow").addClass("arrowhover");
        var selectHeight = $(this).find("ul").height();
//        if($(".language_style01")){
//            $(".language_style01").css("width",110);
//        }
        $(".language_select").stop().animate({
            "height":selectHeight
        },150);
	}).on("mouseleave",".language_select",function(){
		 $(this).find(".arrow").removeClass("arrowhover");
         var selectHeight = $(this).find("ul").children("li").eq(0).height();

         $(".language_select").animate({
             "height":selectHeight
         },150,function(){
//             if($(".language_style01")){
//                 $(".language_style01").css("width",38);
//             }
         });
	});
	
	//重新加载模块和模块拖拽事件
	if(JRF.top.$("#moduleDesignDiv").is(":visible")){
		JRF.top.$("#moduleDesignDiv").empty();
		top.Wapsite.loadModuleLayer();
	}else{
		JRF.top.$("#moduleDesignDiv").empty();
	}
	
	Jrwap.initOnlineServiceWidth();
	//用户刷新前触发的事件
	$(window).bind("beforeunload", function(e){
		if(JRF.top._changeStyleNum > 0) {
			return '您的手机网站正处于编辑状态，离开该页面将会失去您对手机网站所做的修改。';
		}
	});

    if(Jrwap.isIphone()||Jrwap.isIpad()||Jrwap.isAndroid()){
        var screenHeight = window.screen.height;
        var topHeight = $("#web_header").outerHeight();
        var bottomHeight;

        var $content = $("#web_main_content")
        if($content.length==0){
            $content = $("#web_content");
        }
        var contentHeight = $content.height();
        var bannerHeight;
        if($("#web_banner")){
            bannerHeight = $("#web_banner").height();
        }else{
            bannerHeight = 0;
        }
        if($("#web_botton_service")){
            bottomHeight = $("#web_botton_service").outerHeight(true);
            $(Jrwap.getPreviewDocument()).find("#web_footer").removeClass("c-nopadding");
        }else{
            bottomHeight = 0;
            $(Jrwap.getPreviewDocument()).find("#web_footer").addClass("c-nopadding");
        }
        
        var footerHeight = $("#web_footer").outerHeight(true);
        //var allHeight = topHeight + bottomHeight + footerHeight + contentHeight + bannerHeight;
        var allHeight = topHeight  + contentHeight + bannerHeight;
        //var telHeight = screenHeight - topHeight - bottomHeight - footerHeight;
        //获取屏幕高
        if(allHeight < screenHeight){
            $("#web_footer").css({
                //"position":"absolute",
                "left":0,
                "bottom":0
            });
        }else{
            $("#web_footer").css("position","static");
        }
        var minHeight = screenHeight - topHeight - bannerHeight - bottomHeight - footerHeight;
        $("#web_main_content").css("min-height",minHeight);
      	//背景的高度问题
        $("#web_background").height(document.body.scrollHeight-topHeight - bannerHeight - bottomHeight - footerHeight);
    }else{
        var screenHeight = $(Jrwap.getPreviewDocument()).find("#bodyDesign").height();
        var topHeight = $(Jrwap.getPreviewDocument()).find("#web_header").outerHeight();
        var bottomHeight;

        var bannerHeight;
        //var languageHeight;

        if($(Jrwap.getPreviewDocument()).find("#web_banner").length>0){
            bannerHeight =  $(Jrwap.getPreviewDocument()).find("#web_banner").height();
        }else{
            bannerHeight = 0;
        }
        //if($(Jrwap.getPreviewDocument()).find("#webMultilingualArea").length>0){
        //    languageHeight =  $(Jrwap.getPreviewDocument()).find("#webMultilingualArea").height();
        //}else{
        //    languageHeight = 0;
        //}
        if($(Jrwap.getPreviewDocument()).find("#web_botton_service").length>0){
            bottomHeight =  48;
            $(Jrwap.getPreviewDocument()).find("#web_footer").removeClass("c-nopadding");
        }else{
            bottomHeight = 0;
            $(Jrwap.getPreviewDocument()).find("#web_footer").addClass("c-nopadding");

        }
        var footerHeight =  $(Jrwap.getPreviewDocument()).find("#web_footer").outerHeight(true)-50;

        var contentHeight = $("#web_main_content").height();
        
        var minHeight = screenHeight - topHeight - bannerHeight - bottomHeight - footerHeight;
        $(Jrwap.getPreviewDocument()).find("#web_main_content").css("min-height",minHeight);
        $("#web_background").height(document.body.scrollHeight-topHeight - bannerHeight - bottomHeight - footerHeight);
    }
    
    initBrowseEnvironment();

});

function qq(qq){
	//alert(navigator.userAgent);
	if(isWechat()||isPc()){
		window.location.href="mqqwpa://im/chat?chat_type=wpa&uin="+qq;
	}else{
		window.location.href="http://wpa.qq.com/msgrd?v=3&uin="+qq+"&site=qq&menu=yes";
	}
}

function isPc(){
	for (var e = navigator.userAgent, t = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"], i = !0, o = 0; o < t.length; o++)
	if (e.indexOf(t[o]) > 0) {
		i = !1;
		break
	}
	return i
}

function isWechat(){
	return "micromessenger" == window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);
}

function goToMyIndex(){
	window.location.href= document.location.protocol+"/ucenter/mIndex.htmlx";
	/* var ua = window.navigator.userAgent.toLowerCase();
	//判断是否是微信环境
	if(ua.match(/MicroMessenger/i) == 'micromessenger'){
		window.location.href= document.location.protocol+"/ucenter/mIndex.htmlx";
	}else{
		if(JRF.mloginStatus=="1"){
			window.location.href= document.location.protocol+"/ucenter/mIndex.htmlx";
		}else{
			return JRF.login();
		}
	} */
}

function goToMyCart(){
	if(JRF.mloginStatus=="1"){
		window.location.href= document.location.protocol+"/ucenter/m_myShoppingCart.jspx";
	}else{
		return JRF.login();
	}
}

function setBrowseEnvironment(browseEnvironment){
	//记录当前用户访问环境
    // $.ajax({
    // 	url:JRF.curr_protocol+"/setBrowseEnvironment.jspx",
    // 	type:'post',
    // 	dataType:'json',
    // 	data:{"browseEnvironment":browseEnvironment},
    // 	success:function(data){
    		
    // 	}
    // });
}

function initWxShare(){
	var url = window.location.href;
	var timestamp = new Date().getTime();
	var contentId = $("#wx_hid_contentId").val();
	var productId = $("#wx_hid_productId").val();
	$.ajax({
		type: 'POST',
		url:JRF.curr_protocol+'/getWxToken.jspx',
		data: {'url':url,'timestamp':timestamp,'productId':productId,'contentId':contentId},
		dataType: "json",
		success: function(res){
			if(res.code=="200"){
				  wx.config({
						debug: false,
						appId: res.data.appId,
						timestamp: res.data.timestamp,
						nonceStr: res.data.nonceStr,
						signature: res.data.signature,
						jsApiList: [
							'checkJsApi',
                            'updateAppMessageShareData',// 微信朋友圈
                            'updateTimelineShareData',// 微信好友
                            'onMenuShareWeibo',
                            'onMenuShareQZone'
							]
					});
				  _wx_share(res.data.tite,res.data.desc,res.data.image,'link',url);
			  }
		  }
	});
}
function _wx_share(tite, desc, imgUrl,type,url){
	wx.ready(function() {
		if(!desc){
			desc = tite;
		}
		//“分享给朋友”及“分享到QQ”
		wx.updateAppMessageShareData({ 
		    tite: tite, // 分享标题
		    desc: desc, // 分享描述
		    link: url, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
		    imgUrl: imgUrl, // 分享图标
		    success: function () {
		      // 设置成功
		    }
		});
		//分享到朋友圈
		wx.updateTimelineShareData({ 
			tite: tite, // 分享标题
		    link: url, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
		    imgUrl: imgUrl, // 分享图标
		    success: function () {
		      // 设置成功
		    }
		});
		wx.onMenuShareWeibo({ 
			tite: tite, // 分享标题
		    link: url, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
		    imgUrl: imgUrl, // 分享图标
		    success: function () {
		      // 设置成功
		    }
		});
		wx.onMenuShareQZone({ 
			tite: tite, // 分享标题
		    link: url, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
		    imgUrl: imgUrl, // 分享图标
		    success: function () {
		      // 设置成功
		    }
		});
    });
    wx.error(function(res) {
        
    });
}
</script>
<script type="text/javascript" src="/res/common/js/jz.js"></script></body>
</html>